package org.dromara.teacher.domain.bo;

import org.dromara.teacher.domain.XjTable;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 课程业务对象 xj_table
 *
 * @author Lion Li
 * @date 2024-12-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = XjTable.class, reverseConvertGenerate = false)
public class XjTableBo extends BaseEntity {

    /**
     * 课程主键id
     */
    @NotBlank(message = "课程主键id不能为空", groups = { EditGroup.class })
    private String tabelId;

    /**
     * 课程名称
     */
    @NotBlank(message = "课程名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String tabelName;

    /**
     * 关联班级id
     */
    @NotBlank(message = "关联班级id不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classId;

    /**
     * 是否已经结课(0:未结课,1:已结课)
     */
    @NotBlank(message = "是否已经结课(0:未结课,1:已结课)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String isEnd;


}
